<template>
  <div class="mine">
   <div> 手机号：{{phone}}</div>
   <div> 昵称：{{nickName}}</div>
   <div> 分值：{{score}}</div>

  </div>
</template>

<script lang="ts" setup>
import useUserStore from '@/store/modules/user';
import {getUserMessage} from '../../api/mine'
import { ref } from 'vue';
const nickName=ref('')
const phone=ref(0)
const score=ref(0)
const store=useUserStore()
const getMessage=async(token:string)=>{
  const result=await getUserMessage(token)
  console.log('用户信息',result.data.data.userInfo)

  nickName.value=result.data.data.userInfo.nickname
 phone.value=result.data.data.userInfo.phone
 score.value=result.data.data.userInfo.scores

}
getMessage(store.token)





</script>

<style  lang="less" scoped>

</style>
